<case value="password">
    <input type="password" class="form-control input password" name="{$[type]form.name}" value="{$[type]form.value}" {$[type]form.extra_attr}>
</case>